import { RouteRecordRaw } from 'vue-router';
export const routeList: RouteRecordRaw[] = [
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录',
            visible: false
        },
    },
    {
        path: '/',
        name: 'layout',
        component: () => import('@/layout/index.vue'),
        redirect: '/home',
        children: [
            {
                path: '/home',
                name: 'home',
                component: () => import('@/views/home/index.vue'),
                meta: {
                    title: '首页',
                    icon: 'HomeOutlined',
                    visible: true
                }
            },

        ]
    },
    {
        path: '/display2',
        name: 'display2',
        component: () => import('@/layout/index.vue'),
        children: [
            {
                path: '/display',
                name: 'display',
                component: () => import('@/views/display/index.vue'),
                meta: {
                    title: '数据大屏',
                    icon: 'DesktopOutlined',
                    visible: true
                },
            }
        ]
    },
    {
        path: '/authority',
        name: 'authority',
        component: () => import('@/layout/index.vue'),
        meta: {
            title: '权限管理',
            icon: 'ClusterOutlined',
            visible: true
        },
        redirect: '/authority/menu',
        children: [
            {
                path: '/authority/menu',
                name: 'menu',
                component: () => import('@/views/authority/menu/index.vue'),
                meta: {
                    title: '菜单管理',
                    icon: 'AppstoreOutlined',
                    visible: true
                }
            },
            {
                path: '/authority/user',
                name: 'user',
                component: () => import('@/views/authority/user/index.vue'),
                meta: {
                    title: '用户管理',
                    icon: 'UserOutlined',
                    visible: true
                }
            }
        ]
    },
    {
        path: '/404',
        name: '404',
        meta: {
            title: '404',
            visible: false
        },
        component: () => import('@/views/404/index.vue')
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/404',
        name: 'Any',
        meta: {
            visible: false
        },
    }
]